package com.wangzh.nio.convert;

import java.io.*;

public class Demo {
    public static void main(String[] args) throws IOException {
        /**
         * 利用转换流按照指定字符集编码读取
         */

        FileInputStream fr = new FileInputStream("filea.txt");
        InputStreamReader sr = new InputStreamReader(fr);
        BufferedReader br = new BufferedReader(sr);
        System.out.println(br.readLine());

        br.close();
    }
}
